<script>
export default {
  onLaunch: function () {
    console.log("App Launch");
    if (!uni.getStorageSync("token")) {
      
      uni.navigateTo({ url: "/pages/login/login" });
    }
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style>
page {
  height: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}
/* 有tab的页面添加此class，将底部tabbar的区域留出，页面内部使用100%即可撑满，如有背景色需要全屏铺满，直接给page添加scope背景色即可 */
page .tab-page {
  padding-bottom: calc(env(safe-area-inset-bottom) + 116rpx);
}
uni-page-wrapper {
  height: calc(100% - 44px) !important;
}
body *,
page view {
  box-sizing: border-box;
  flex-shrink: 0;
}
body {
  font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma,
    Arial, PingFang SC-Light, Microsoft YaHei;
  margin: 0;
}
button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
}

button:active {
  opacity: 0.6;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.justify-start {
  display: flex;
  justify-content: flex-start;
}
.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}
.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}
.justify-around {
  display: flex;
  justify-content: space-around;
}
.justify-between {
  display: flex;
  justify-content: space-between;
}
.align-start {
  display: flex;
  align-items: flex-start;
}
.align-center {
  display: flex;
  align-items: center;
}
.align-end {
  display: flex;
  align-items: flex-end;
}
</style>
